package com.spl.mcm.views;

import com.spl.mcm.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ListView;

public class CustomListView extends ListView{

	
	public CustomListView(Context context) {
		super(context);
		
	}

	public CustomListView(Context context, AttributeSet attrs) {
		super(context, attrs);
		
	}
	
	public CustomListView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		
	}

	public void activeSelectItems(Boolean isActive) {
		int iChildCount = this.getChildCount();
		for(int i = 0; i < iChildCount; i++) {
			View child = this.getChildAt(i);
			CheckBox checkBox = (CheckBox)child.findViewById(R.id.editCheckBox);
			if(checkBox != null)
				checkBox.setVisibility(View.VISIBLE);
		}
	}
}
